# -*- coding: utf-8 -*-
#
# File: Perfil.py
#
# Copyright (c) 2008 by TcheZope.org
# Generator: ArchGenXML Version 2.0-beta9
#            http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#

__author__ = """Fabiano Weimar dos Santos <xiru@xiru.org>, Jean Rodrigo Ferri
<jeanrodrigoferri@yahoogroups.com>, Rafahela Bazzanella
<rafabazzanella@yahoo.com.br>"""
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.atapi import *
from zope.interface import implements
import interfaces

from Products.CMFDynamicViewFTI.browserdefault import BrowserDefaultMixin

from Products.PloneZopista.config import *

##code-section module-header #fill in your manual code here
##/code-section module-header

schema = Schema((

    StringField(
        name='id',
        widget=IdWidget
    ,
    ),
    StringField(
        name='title',
        widget=StringField._properties['widget'](
            description="Informe o nome completo.",
            label="Nome",
            label_msgid='PloneZopista_label_title',
            description_msgid='PloneZopista_help_title',
            i18n_domain='PloneZopista',
        ),
        required=1,
        accessor="Title",
        searchable=1,
    ),
    TextField(
        name='description',
        widget=TextAreaWidget(
            label="Observacoes",
            description="Informe uma breve descricao sobre o perfil.",
            label_msgid='PloneZopista_label_description',
            description_msgid='PloneZopista_help_description',
            i18n_domain='PloneZopista',
        ),
        required=1,
        accessor="Description",
        searchable=1,
    ),
    StringField(
        name='email',
        widget=StringField._properties['widget'](
            description="Informe seu endereco de e-mail para contato.",
            label="E-Mail",
            label_msgid='PloneZopista_label_email',
            description_msgid='PloneZopista_help_email',
            i18n_domain='PloneZopista',
        ),
        required=1,
        validators=('isEmail',),
    ),
    StringField(
        name='website',
        widget=StringField._properties['widget'](
            description="Informe o endereco de seu sitio da web.",
            label='Website',
            label_msgid='PloneZopista_label_website',
            description_msgid='PloneZopista_help_website',
            i18n_domain='PloneZopista',
        ),
        validators=('isURL',),
    ),
    StringField(
        name='telefone',
        widget=StringField._properties['widget'](
            description="Informe seu telefone para contato.",
            label='Telefone',
            label_msgid='PloneZopista_label_telefone',
            description_msgid='PloneZopista_help_telefone',
            i18n_domain='PloneZopista',
        ),
    ),
    StringField(
        name='rua',
        widget=StringField._properties['widget'](
            description="Informe o logradouro em que voce reside.",
            label='Rua',
            label_msgid='PloneZopista_label_rua',
            description_msgid='PloneZopista_help_rua',
            i18n_domain='PloneZopista',
        ),
        required=1,
    ),
    StringField(
        name='bairro',
        widget=StringField._properties['widget'](
            description="Informe o bairro em que voce reside.",
            label='Bairro',
            label_msgid='PloneZopista_label_bairro',
            description_msgid='PloneZopista_help_bairro',
            i18n_domain='PloneZopista',
        ),
        required=1,
    ),
    StringField(
        name='cidade',
        widget=StringField._properties['widget'](
            description="Informe o nome da cidade em que voce reside.",
            label='Cidade',
            label_msgid='PloneZopista_label_cidade',
            description_msgid='PloneZopista_help_cidade',
            i18n_domain='PloneZopista',
        ),
        required=1,
    ),
    StringField(
        name='cep',
        widget=StringField._properties['widget'](
            description="Informe o Codigo de Enderecamento Postal em que voce reside.",
            label='Cep',
            label_msgid='PloneZopista_label_cep',
            description_msgid='PloneZopista_help_cep',
            i18n_domain='PloneZopista',
        ),
    ),
    StringField(
        name='estado',
        widget=SelectionWidget,
        enforceVocabulary=1,
        vocabulary=VOCAB_ESTADOS,
        required=1,
    ),
    StringField(
        name='pais',
        widget=StringField._properties['widget'](
            description="Informe o pais em que voce reside.",
            label='Pais',
            label_msgid='PloneZopista_label_pais',
            description_msgid='PloneZopista_help_pais',
            i18n_domain='PloneZopista',
        ),
        required=1,
    ),
    TextField(
        name='contribuicoes',
        widget=TextAreaWidget(
            description="Informe as contribuicoes efetuadas para a comunidade Python/Zope/Plone.",
            rows=10,
            label='Contribuicoes',
            label_msgid='PloneZopista_label_contribuicoes',
            description_msgid='PloneZopista_help_contribuicoes',
            i18n_domain='PloneZopista',
        ),
        searchable=1,
    ),
),
)

##code-section after-local-schema #fill in your manual code here
##/code-section after-local-schema

Perfil_schema = schema.copy()

##code-section after-schema #fill in your manual code here
##/code-section after-schema

class Perfil(BrowserDefaultMixin):
    """
    """
    security = ClassSecurityInfo()
    implements(interfaces.IPerfil)

    _at_rename_after_creation = True

    schema = Perfil_schema

    ##code-section class-header #fill in your manual code here
    ##/code-section class-header

    # Methods

# end of class Perfil

##code-section module-footer #fill in your manual code here
##/code-section module-footer



